﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WriteBugs.Library.Model;

namespace WriteBugs.Controls
{
    public class TreeViewAdvNodeItem
    {
        public string? Title => Excerpt?.Title;

        public List<TreeViewAdvNodeItem> Children { get; set; } = new List<TreeViewAdvNodeItem>();


        /// <summary>
        /// 跟随的Excerpt   
        /// </summary>
        public Excerpt? Excerpt { get; set; }

        public bool IsRoot { get; set; }


        public override string ToString()
        {
            return Title != null ? Title : "null";
        }
    }
}
